package com.jier.vo.admin;

import com.jier.common.util.DateUtil;
import com.jier.dto.SystemLogResultDto;
import io.swagger.annotations.ApiModelProperty;

/**
 * 系统日志视图
 *
 * @author jie_r
 * @date 2018/04/04
 */
public class SystemLogVo {
    /**
     * 日志ID
     */
    @ApiModelProperty(value = "日志ID", dataType = "Integer")
    private Integer id;
    /**
     * 操作人
     */
    @ApiModelProperty(value = "操作人", dataType = "String")
    private String systemUserName;
    /**
     * 操作内容
     */
    @ApiModelProperty(value = "操作内容", dataType = "String")
    private String content;
    /**
     * 操作状态
     */
    @ApiModelProperty(value = "操作状态", dataType = "Boolean")
    private Boolean status;
    /**
     * 请求状态
     */
    @ApiModelProperty(value = "请求状态", dataType = "Integer")
    private Integer httpStatus;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "String")
    private String createDate;

    public SystemLogVo(SystemLogResultDto systemLog) {
        this.id = systemLog.getId();
        this.systemUserName = systemLog.getSystemUserName();
        this.content = systemLog.getContent();
        this.status = systemLog.getStatus();
        this.httpStatus = systemLog.getHttpStatus();
        this.createDate = DateUtil.formatTime(systemLog.getCreateDate());
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSystemUserName() {
        return systemUserName;
    }

    public void setSystemUserName(String systemUserName) {
        this.systemUserName = systemUserName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Integer getHttpStatus() {
        return httpStatus;
    }

    public void setHttpStatus(Integer httpStatus) {
        this.httpStatus = httpStatus;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }
}
